package dnl.confij.ini;

import java.io.File;

import dnl.confij.ConfigException;
import dnl.confij.Configuration;

/**
 * Implements an ini configuration.
 * 
 * @author <a href="mailto:daniel.or@gmail.com">Daniel Or</a>
 * 
 */
public class IniConfiguration extends Configuration {

	/**
	 * 
	 * Constructs a new <code>IniConfiguration</code> using a
	 * <code>File</code> object.
	 * 
	 * @param iniFile
	 *            an ini <code>File</code>.
	 * 
	 * @throws ConfigException
	 *             if any problem happens when loading the configuration.
	 */
	public IniConfiguration(File iniFile) throws ConfigException {
		this.configSource = new IniConfigurationSource(iniFile);
		this.configSource.loadConfiguration(this);
	}

}
